#pragma once

#define LOG_BUFFER_SIZE 10 * 64 * 1024

class Buffer
{
public:
	Buffer();
	~Buffer();
	static Buffer* Allocate();
	void Free();
	void Append(const void* data, int len);
	const char* GetData();
	int Length();
	int Available();
	void Reset();

private:
	char m_Buffer[LOG_BUFFER_SIZE];
	int m_Length;
};

